package com.xbai.springcloud.service;

import com.xbai.springcloud.dao.PaymentDao;
import com.xbai.springcloud.entity.Payment;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author xbai
 * @Date 2021/5/11
 */
@Service
@RequiredArgsConstructor
public class PaymentServiceImpl implements PaymentService {

    private final PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
